import request from '@/utils/request'
// 获取角色列表的API
export const getRoleListAPI = (params) => request.get('/sys/role', { params })

// 新增角色
export const addRoleListAPI = (data) => request.post('/sys/role', data)

// 删除角色
export const delRoleAPI = (id) => request.delete(`/sys/role/${id}`)

// 更新角色API
export const updateRoleAPI = (data) => request.put(`/sys/role/${data.id}`, data)

// 获取所有可用角色API
export const getAllRoleEnableAPI = () => request.get('/sys/role/list/enabled')
